package com.spring.web.adminmanage.repository;

import com.spring.web.adminmanage.entities.Role;
import com.spring.web.adminmanage.myMapper.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RoleDao extends MyMapper<Role> {

	@Select("SELECT rm.menuid FROM role_menu rm WHERE rm.roleid = #{roleid}")
	List<Long> getOwnedMenuId(@Param("roleid") Long roleid);

	void insertBackId(Role role);
}